package com.youlv.yl.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author fenghe
 * @since 2022-01-12
 */
@Data
@NoArgsConstructor
@TableName("u_userSign")
@ApiModel(value = "UserSign对象", description = "")
public class UserSign implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("uid")
    private Long uid;

    @ApiModelProperty("连续签到的天数")
    @TableField("days")
    private Integer days;

    @ApiModelProperty("奖励的基础积分")
    @TableField("score")
    private Integer score;

    @ApiModelProperty("奖励的额外积分")
    @TableField("extscore")
    private Integer extscore;

    @TableField("ctime")
    private Date ctime;

    public UserSign(Integer score) {
        this.score = score;
    }
}
